package com.xs;

import java.io.IOException;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

import com.xs.annoation.AnnotationAction;
import com.xs.config.ConsumerConfiguration;

/**
 * @Title: <P>AppAnotation.java</P>
 * @Package <P>com.xs.service</P>
 * @Description: <P>TODO该类...</P>
 * @author renweiping
 * @date 2019年2月28日 下午3:47:25
 * @version 1.0
 */

public class ConsumerAnotationMain {

	public static void main(String[] args) throws IOException {
		  AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(ConsumerConfiguration.class);
		  context.start();
		  final AnnotationAction annotationAction = (AnnotationAction) context.getBean("annotationAction");
		  String hello = annotationAction.doSayHello("world");
		  System.out.println(hello);

	}

}
